package com.ruiyian.netty.nettyserver;

import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2020/12/21
 * Desc: 通道组池，管理所有websocket连接
 */
public class MyChannelHandlerPool {
    public MyChannelHandlerPool(){}

    public static ChannelGroup channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
/*
    public static ChannelGroup modelChannelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
    // 综合 端口: 12347
    public static ChannelGroup mainChannelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
*/
    // tcp 连接
    public static ChannelGroup tcpChannelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
}
